package bots;

import classification.ClassifierMoveChooser;
import model.*;

/**
 * @author Alex Vikharev vikharev@yandex-team.ru
 *         created 27.02.12
 */
public class SimpleClassifierBot extends AbstractBot {
    private final ClassifierMoveChooser chooser;

    public SimpleClassifierBot(String name, GameType gameType, final Classifier classifier) {
        super(name, gameType);
        this.chooser = new ClassifierMoveChooser(classifier);
    }

    @Override
    public Position setFigure(final Field field, final Figure figure) {
        return chooser.choose(getPossibleMoves(field, figure));
    }
}
